<div class="container-fluid">
	<div id="pad-wrapper">
		<!-- products table-->
		<!-- the script for the toggle all checkboxes from header is located in js/theme.js -->
		<div class="table-wrapper products-table section">
			<div class="row-fluid head">
				<div class="span12">
					<h4>抽奖结果列表</h4>
				</div>
			</div>
			
			<form action="" method="get" name="search">
			<div class="row-fluid filter-block">
				<div class="pull-left">
				</div>
				<div class="pull-right">
					用户名：
					<input type="text" class="search" name="name" value="<?php echo $name;?>"/> 
					类型：
					<select name="prize_type">
						<option value="">所有</option>
						<option value="1" <?php if($prize_type == 1):?>selected<?php endif;?>>优惠券</option>
						<option value="2" <?php if($prize_type == 2):?>selected<?php endif;?>>实物</option>
					</select>
					<a class="btn-flat success" onclick="document.forms['search'].submit();">搜索</a>
				</div>
			</div>
			</form>
			
			<div class="row-fluid">
				<table class="table table-hover">
					<thead>
						<tr>
							<th class="span3">用户名称</th>
							<th class="span3"><span class="line"></span>奖品描述</th>
							<th class="span3"><span class="line"></span>奖品类型</th>
							<!-- 
							<th class="span3"><span class="line"></span>操作</th>
							-->
						</tr>
					</thead>
					<tbody>
						<?php if($list):?>
						<?php foreach ($list as $item):?>
						<!-- row -->
						<tr class="first">
							<td><?php echo $item['nickname']?></td>
							<td class="description"><?php echo $item['prize_content']?></td>
							<td>
								<?php if($item['prize_type'] == 1):?>优惠券<?php else:?>实物<?php endif;?>
							</td>
							<td>
								<!--  
								<button type="button" class=" btn-flat primary" onclick="window.location.href='/prize_type/edit?id=<?php echo $item['prize_id']?>'">编辑</button></li>
								-->
							</td>
						</tr>
						<?php endforeach;?>
						<?php endif;?>
					</tbody>
				</table>
			</div>
		</div>
		<!-- end products table -->
	</div>
	<div class="pagination pull-right">
	  <?php echo $pagination;?>
	</div>
</div>


